package com.competition.param.impl;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.competition.web.constant.ValidateCondtionAndMessage;

public class ProductItem {
	/**
	 * 单独设置的token
	 */
	@Pattern(regexp = ValidateCondtionAndMessage.NUMBER, message = ValidateCondtionAndMessage.NUMBER_MSG)
	private String tokenId;
	
	private Double price;
	@Min(value = ValidateCondtionAndMessage.MIN_COMMON_STATUS, message = ValidateCondtionAndMessage.MIN_MSG)
	@Max(value = ValidateCondtionAndMessage.MAX_COMMON_STATUS, message = ValidateCondtionAndMessage.MAX_MSG)
	private Integer sfsj;
	
	@Min(value = ValidateCondtionAndMessage.MIN_COMMON_STATUS, message = ValidateCondtionAndMessage.MIN_MSG)
	@Max(value = ValidateCondtionAndMessage.MAX_COMMON_STATUS, message = ValidateCondtionAndMessage.MAX_MSG)
	private Byte shopwindow;
	
	private byte separately = 1;
	
	public Byte getSeparately() {
		return separately;
	}

	public void setSeparately(Byte separately) {
		this.separately = separately;
	}

	public String getTokenId() {
		return tokenId;
	}

	public void setTokenId(String tokenId) {
		this.tokenId = tokenId;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getSfsj() {
		return sfsj;
	}

	public void setSfsj(Integer sfsj) {
		this.sfsj = sfsj;
	}

	public Byte getShopwindow() {
		return shopwindow;
	}

	public void setShopwindow(Byte shopwindow) {
		this.shopwindow = shopwindow;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	private Integer pid;
}
